namespace SimpleWebServices.Web.UI.Html
{
    using System;
    using System.Collections.Generic;
    using Xunit;

    public sealed class IInnerElementsFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IInnerElements).IsInterface);
        }

        [Fact]
        public void is_IElement()
        {
            Assert.True(typeof(IElement).IsAssignableFrom(typeof(IInnerElements)));
        }

        [Fact]
        public void IInnerElements_InnerElements_get()
        {
            try
            {
                IList<IElementSerializable> value = (new IInnerElementsDummy() as IInnerElements).Elements;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IInnerElements_indexer_string_get()
        {
            try
            {
                IElement value = (new IInnerElementsDummy() as IInnerElements)["id"];
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}